package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.AnimalDao;
import com.cutePet.pet.domain.AnimalDO;
import com.cutePet.pet.service.AnimalService;



@Service
public class AnimalServiceImpl implements AnimalService {
	@Autowired
	private AnimalDao animalDao;
	
	@Override
	public AnimalDO get(Long animalId){
		return animalDao.get(animalId);
	}
	
	@Override
	public List<AnimalDO> list(Map<String, Object> map){
		return animalDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return animalDao.count(map);
	}
	
	@Override
	public int save(AnimalDO animal){
		return animalDao.save(animal);
	}
	
	@Override
	public int update(AnimalDO animal){
		return animalDao.update(animal);
	}
	
	@Override
	public int remove(Long animalId){
		return animalDao.remove(animalId);
	}
	
	@Override
	public int batchRemove(Long[] animalIds){
		return animalDao.batchRemove(animalIds);
	}
	
}
